package com.kzw.menu;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.kzw.oa.system.model.Dictionary;
import com.kzw.oa.system.service.DictionaryService;

@Controller
@RequestMapping("/ui/deptUser/")
public class DeptUserUIAction {

    @Autowired
    private DictionaryService dictionaryService;

    @RequestMapping("list")
    public String list() {
        return "hzgl/deptUser_view";
    }

    @RequestMapping("authtree")
    public String authtree() {
        return "hzgl/index";
    }

    @RequestMapping("add")
    public ModelAndView add(ModelAndView modelAndView) {
        modelAndView.setViewName("hzgl/deptUser_form");
        List<Dictionary> cardTypeList = dictionaryService.getByItemName("证件类别");
        modelAndView.addObject("cardTypeList", cardTypeList);
        return modelAndView;
    }

}
